﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

//{"key":"contact_id","contact_id":"888014928746818192","sync_cid":"U2gFe3d5QgeRtPLt0P2geXWe","
//group_id":null,"cardstate":"4","cloudcheck":"0","cardsource":"3","timecreate":"1393913701.813"}
public class SyncCardData
{
    public string Key { get; set; }
    public string Contact_id { get; set; }
    public string Sync_cid { get; set; }
    public string Group_id { get; set; }
    public string Cardstate { get; set; }
    public string Cloudcheck { get; set; }
    public string Cardsource { get; set; }
    public string Timecreate { get; set; }
}

//{"key":"name","username":"\u5e7f\u5dde \u66fe\u4e3d\u541b","prefix":"","first":"\u66fe\u4e3d\u541b",
//"middle":"","last":"\u5e7f\u5dde","suffix":"\r\n","phonetic_first":"zenglijun","phonetic_last":"guangzhou",
//"xpos":"X-POS=112,212,256,90;X-EDIT=4"}
public class SyncCardName
{
    public string Key { get; set; }
    public string Username { get; set; }
    public string Prefix { get; set; }
    public string First { get; set; }
    public string Middle { get; set; }
    public string Last { get; set; }
    public string Suffix { get; set; }
    public string Phonetic_first { get; set; }
    public string Phonetic_last { get; set; }
    public string Xpos { get; set; }
}

//{"key":"phone","type":"CELL","value":"62683841","xpos":"X-POS=117,310,243,39;X-EDIT=4"}
public class SyncCardPhone
{
    public string Key { get; set; }
    public string Type { get; set; }
    public string Value { get; set; }
    public string Xpos { get; set; }
}

//{"key":"address","type":"WORK","street1":"\u5e7f\u5dde\u5e02\u5929\u6cb3\u8def502\u53f7\u5929","street2":"",
//"state":"","city":"","zip":"","country":"\r\n","xpos":"X-POS=46,476,446,57,46,476,446,57;X-EDIT=4"}
public class SyncCardAddress
{
    public string Key { get; set; }
    public string Type { get; set; }
    public string Street1 { get; set; }
    public string Street2 { get; set; }
    public string City { get; set; }
    public string Zip { get; set; }
    public string Country { get; set; }
    public string Xpos { get; set; }
}

//{"key":"company","company":"\u5609\u626c\u79d1\u6280","department":"","sort":1,"
//phonetic_company":"JiaYangKeJi","xpos":"X-POS=-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1;X-EDIT=8"}
public class SyncCardCompany
{
    public string Key { get; set; }
    public string Company { get; set; }
    public string Department { get; set; }
    public string Sort { get; set; }
    public string Phonetic_company { get; set; }
    public string Xpos { get; set; }
}

//{"key":"template_id","value":null}
public class SyncCardTemplate
{
    public string Key { get; set; }
    public string Value { get; set; }
}

//{"key":"front_pic","value":"BYARfYeNdVDULLQ12CJ6a9b5.jpg","angle":null,
//"url":"https:\/\/cc1.camcard.com\/sync\/u\/CamCard_Image\/BYARfYeNdVDULLQ12CJ6a9b5.jpg"}
public class SyncCardFrontPic
{
    public string Key { get; set; }
    public string Value { get; set; }
    public string Angle { get; set; }
    public string Url { get; set; }
}
//{"key":"back_pic","value":"bTB97dJCTPhVQR4BWMQJD7hU.jpg","angle":null,
//"url":"https:\/\/cc1.camcard.com\/sync\/u\/CamCard_Image\/bTB97dJCTPhVQR4BWMQJD7hU.jpg"},
public class SyncCardBackPic
{
    public string Key { get; set; }
    public string Value { get; set; }
    public string Angle { get; set; }
    public string Url { get; set; }
}

//{"key":"website","type":"WORK","value":"www.shenze-tech.com","xpos":"X-POS=55,354,271,39;X-EDIT=4"}
public class SyncCardWebsite
{
    public string Key { get; set; }
    public string Type { get; set; }
    public string Value { get; set; }
}

//{"key":"im","type":"QQ","value":"800035699","xpos":"X-EDIT=8"}
public class SyncCardIM
{
    public string Key { get; set; }
    public string Type { get; set; }
    public string Value { get; set; }
}

//{"key":"note","value":"WeChat\/WhatsApp\/Viber: 13798049423"}
public class SyncCardNote
{
    public string Key { get; set; }
    public string Value { get; set; }
}

//{"key":"email","type":"WORK","value":"dbpgmbh2004@yahoo.com.cn","xpos":"X-POS=334,498,514,41"}
public class SyncCardEmail
{
    public string Key { get; set; }
    public string Type { get; set; }
    public string Value { get; set; }
}

//{"key":"nickname","value":"Mustafa Wang","xpos":"X-POS=299,176,263,41;X-EDIT=4"}
public class SyncCardNickname
{
    public string Key { get; set; }
    public string Value { get; set; }
}

//{"key":"vacard_datas","value":"X-IS-CLOUD-CHECK-OWNER:355896053888568\r\n\r\nX-IS-PID:355896053888568\/74\r\n"}
public class SyncCardVacardDatas
{
    public string Key { get; set; }
    public string Value { get; set; }
}

//{"key":"sns","type":"WORK","value":"dbpgmbh2004@yahoo.com.cn","xpos":"X-POS=334,498,514,41"}
public class SyncSns
{
    public string Key { get; set; }
    public string Type { get; set; }
    public string Value { get; set; }
}